package com.wx.entity;

// 数据库交互

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/*
* Data : get/set方法
* AllArgsConstructor : 有参构造
* NoArgsConstructor : 无参构造
* Serializable : 对象序列化的接口(将对象状态转换为可保持或传输的格式的过程)
* */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Admin implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private Integer isFrozen;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private String createUser;
    private String updateUser;
}
